﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EdicionProducto.aspx.cs" Inherits="Proveedor_EdicionProducto" %>

<%@ Register src="Controles/veProducto.ascx" tagname="veProducto" tagprefix="uc1" %>

<%@ Register src="Controles/ucLinks.ascx" tagname="ucLinks" tagprefix="uc2" %>

<%@ Register src="Controles/vdProductos.ascx" tagname="vdProductos" tagprefix="uc3" %>

<%@ Register src="Controles/ucFoto.ascx" tagname="ucFoto" tagprefix="uc4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <link href="../Estilos/Prueba2.css" rel="stylesheet" />
    <title></title>
    <script language="javascript" type="text/javascript" src="../Scripts/comunes.js"></script>
    <script language="javascript" type="text/javascript">
        function abrirPopUp(idSeleccionado) 
        {
            var dir = '../Comunes/popup.htm?URL=../Proveedor/Edicion/EdicionProducto.aspx';

            if (idSeleccionado != null)
                dir += '?idSeleccionado=' + idSeleccionado;
                
            var ret = OpenModalDialog(dir, null, 'status:no;help:no;scroll:no;dialogWidth:600px;dialogHeight:400px;');
            if (ret != null && ret) {
                window.event.returnValue = true;
                return true;
            }
            else {
                window.event.returnValue = false;
                return false;
            }
        }
            
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
            <td></td>
            <td></td>
            <td></td>
        </tr>        
        <tr>
            <td valign="bottom"><img alt="" src="../Imag/bor_sup2.bmp" /></td>
            <td style="width:20px">&nbsp;</td>
            <td class="contenidoPrincipal">
                <table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:100%">
                    <tr>
                        <td><img alt="" src="../Imag/tl.bmp" /></td>
                        <td></td>
                        <td align="right"><img alt="" src="../Imag/t2.bmp" /></td>
                    </tr>
                </table>
            </td>
            <td></td>
        </tr>
        <tr>
            <td class="menu1">
                <uc2:ucLinks ID="ucLinks" runat="server" />
            </td>
            <td></td>
            <td style="width:90%" class="contenidoPrincipal">
                <table cellspacing="0" cellpadding="0" border="0" style="width:100%">							    
				    <tr>
				        <td>
				            
				            <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                                <ContentTemplate>
                                    <uc1:veProducto ID="veProducto" runat="server" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
				        </td>
				    </tr>
				    <tr>
				        <td>
				        <table  cellspacing="0" cellpadding="0" border="0" style="width:100%">
                            <tr>
                                <td>&nbsp;</td>
                                <td style="width:100px">
                                    <asp:Label ID="lblFotos" runat="server" Text="Fotos:" CssClass="basetext"></asp:Label>
                                </td>        
                                <td colspan="6">
                                    <uc4:ucFoto ID="ucFoto" runat="server" />
                                </td>
                                <td>&nbsp;</td>
                            </tr>
                        </table>
				            
				        </td>
				    </tr>
				    <tr>
				        <td>
				            <table cellspacing="0" cellpadding="0" border="0" style="width:100%">							    
				                <tr>
					                <td style="width:100%;">
					                    &nbsp;
					                </td>
					                <td align="right">
						                <table cellspacing="0" cellpadding="0" border="0">
							                <tr>
								                <td style="width:10;">
            								        
								                </td>
								                <td>
                                                    &nbsp;<asp:Button ID="btnConfirmar" runat="server" Text="Confirmar"  ValidationGroup="confirmar"
                                                        Width="85px" ToolTip="Confirmar" onclick="btnConfirmar_Click" />
                                                </td>
								                <td>
								                    &nbsp;<asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Width="85px"  OnClientClick="javascript:window.top.Return();" CausesValidation="False" ToolTip="Cancelar" />
                                                </td>
                                                <td>&nbsp;</td>
				                            </tr>
			                            </table>
                                    </td>
                                </tr>                            
                            </table>
				        </td>
				    </tr>
				    <tr>
				        <td>
				            <asp:UpdatePanel ID="upVdProducto" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <uc3:vdProductos ID="vdProductos" runat="server" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
				        </td>
				    </tr>
				</table>
            </td>            
            <td></td>
        </tr> 
        <tr>
            <td class="menu1"></td>
            <td></td>
            <td class="contenidoPrincipal">
                  
            </td>
            <td></td>
        </tr>         
        <tr>
            <td valign="top"><img alt="" src="../Imag/bor_inf2.bmp" /></td>
            <td></td>
            <td class="contenidoPrincipal">
                <table cellspacing="0" cellpadding="0" border="0" width="100%" >                    
                    <tr>
                        <td><img alt="" src="../Imag/t4.bmp" /></td>
                        <td></td>
                        <td align="right"><img alt="" src="../Imag/t3.bmp"/></td>
                    </tr>
                </table>
            </td>
            <td></td>
        </tr> 
               
     </table>
    
    </div>
    </form>
</body>
</html>
